import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-oem/oem/bankActive/bankActive/activePage',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (params) => {
  return request({
    url: '/api/rb-oem/oem/bankActive/bankActive/activeDetail',
    method: 'get',
    params: {
        ...params,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/api/rb-oem/oem/bankActive/bankActive/submitActive',
    method: 'post',
    data: row
  })
}


export const bankPage = (current, size, params) => {
    return request({
      url: '/api/rb-oem/oem/bankActive/bankActive/bankPage',
      method: 'get',
      params: {
        ...params,
        current,
        size,
      }
    })
}